package site.shihuan.helpdesk.auth.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import site.shihuan.helpdesk.auth.model.po.SvcClerkPO;
import site.shihuan.helpdesk.common.model.JwtUser;
import site.shihuan.helpdesk.common.model.RestResult;

/**
 * 职工业务层
 *
 * @author 周世焕
 * @Date 2021/3/20 19:03
 */
@FeignClient(name = "helpdesk-service")
public interface ClerkService {

    /**
     * 增加clerk
     * @param svcClerkPO
     * @return
     */
    @PostMapping("/v1/service/clerk")
    RestResult createClerk(@RequestBody SvcClerkPO svcClerkPO);

    /**
     * 增加clerk
     * @param clerkId
     * @return
     */
    @DeleteMapping("/v1/service/clerk")
    RestResult deleteClerk(@RequestParam String clerkId);

}
